import request from '@/utils/request';

export async function getFileDataByPage (params: any) {
    return request('/api/system/getFileDataByPage', {
    method: 'POST',
    data: params,
  });
}



export async function addFileData (params: any) {
    return request('/api/system/addFileData', {
    method: 'POST',
    data: params,
  });
}

export async function updateFileData (params: any) {
    return request('/api/system/updateFileData', {
    method: 'POST',
    data: params,
  });
}

export async function delFileData (params: any) {
    return request('/api/system/delFileData', {
    method: 'POST',
    data: params,
  });
}


export async function exportFileData(params: any) {
    return request('/api/system/exportFileData', {
    method: 'POST',
    data: params,
    responseType: 'blob',
  });
}
export default { getFileDataByPage, addFileData, updateFileData, delFileData, exportFileData }
